package com.xgc.erp.statistics.service;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class SellOrderStatisticsService {

    public List<Record>  sellOrderMonthStatistics(String month) {
        String sql = Db.getSql("erp.sellOrderMonthStatistics");
        return Db.find(sql,month,month,month,month);
    }

    public List<Record>  sellOrderDayStatistics(String date) {
        String sql = Db.getSql("erp.sellOrderDayStatistics");
        return Db.find(sql,date,date,date,date);
    }

}
